<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 200px;
            height: 50px;
            border: solid red;
            text-align: center;/*水平对齐方式*/
            /*文本修饰overline/underline/line-through/none 上/下/中/去掉自带下划线*/
            text-decoration:line-through;
            /*通过行高控制文本垂直居中*/
            line-height: 50px;
            /*文本阴影:颜色 x偏移量 y偏移量 浓度*/
            text-shadow: blue -20px -20px 3px;
            /*字体大小*/
            font-size: 30px;
            font-weight: bold;/*加粗*/
            font-style: italic;/*斜体*/

        }
        a{
            text-decoration: none;/*去掉自带下划线*/
        }
        h1{
            font-weight: normal;/*去掉加粗的效果*/
            /*字体设置*/
            /*font-family: cursive;*/
            font: 50px cursive,"Open Sans",fantasy;
        }
    </style>
</head>
<body>
<h1>这是h1</h1>
<a href="">超链接</a>
<div>文本和字体测试</div>
</body>
</html>